package com.supermap.desktop.develop.workspacemigration.migration;

import com.supermap.data.EngineType;

public class MigrationConfig {

    private String srcIP;
    private String srcPort;
    private String srcDatabaseName;
    private String srcUsername;
    private String srcPassword;
    private String srcEngineType;

    private String tarIP;
    private String tarPort;
    private String tarDatabaseName;
    private String tarUsername;
    private String tarPassword;
    private String tarEngineType;

    public MigrationConfig() {
        this("", "", "", "", "", "",
                "", "", "", "", "", "");
    }

    public MigrationConfig(String srcIP, String srcPort, String srcDatabaseName, String srcUsername, String srcPassword, String srcEngineType,
                           String tarIP, String tarPort, String tarDatabaseName, String tarUsername, String tarPassword, String tarEngineType) {
        this.srcIP = srcIP;
        this.srcPort = srcPort;
        this.srcDatabaseName = srcDatabaseName;
        this.srcUsername = srcUsername;
        this.srcPassword = srcPassword;
        this.srcEngineType = srcEngineType;

        this.tarIP = tarIP;
        this.tarPort = tarPort;
        this.tarDatabaseName = tarDatabaseName;
        this.tarUsername = tarUsername;
        this.tarPassword = tarPassword;
        this.tarEngineType = tarEngineType;
    }

    public String getSrcIP() {
        return srcIP;
    }

    public void setSrcIP(String srcIP) {
        this.srcIP = srcIP;
    }

    public String getSrcPort() {
        return srcPort;
    }

    public void setSrcPort(String srcPort) {
        this.srcPort = srcPort;
    }

    public String getSrcDatabaseName() {
        return srcDatabaseName;
    }

    public void setSrcDatabaseName(String srcDatabaseName) {
        this.srcDatabaseName = srcDatabaseName;
    }

    public String getSrcUsername() {
        return srcUsername;
    }

    public void setSrcUsername(String srcUsername) {
        this.srcUsername = srcUsername;
    }

    public String getSrcPassword() {
        return srcPassword;
    }

    public void setSrcPassword(String srcPassword) {
        this.srcPassword = srcPassword;
    }

    public String getSrcEngineType() {
        return srcEngineType;
    }

    public void setSrcEngineType(String srcEngineType) {
        this.srcEngineType = srcEngineType;
    }

    public String getTarIP() {
        return tarIP;
    }

    public void setTarIP(String tarIP) {
        this.tarIP = tarIP;
    }

    public String getTarPort() {
        return tarPort;
    }

    public void setTarPort(String tarPort) {
        this.tarPort = tarPort;
    }

    public String getTarDatabaseName() {
        return tarDatabaseName;
    }

    public void setTarDatabaseName(String tarDatabaseName) {
        this.tarDatabaseName = tarDatabaseName;
    }

    public String getTarUsername() {
        return tarUsername;
    }

    public void setTarUsername(String tarUsername) {
        this.tarUsername = tarUsername;
    }

    public String getTarPassword() {
        return tarPassword;
    }

    public void setTarPassword(String tarPassword) {
        this.tarPassword = tarPassword;
    }

    public String getTarEngineType() {
        return tarEngineType;
    }

    public void setTarEngineType(String tarEngineType) {
        this.tarEngineType = tarEngineType;
    }

    public void setSourceDatabaseConfig(String ip, String port, String databaseName, String username, String password, String engineType) {
        this.srcIP = ip;
        this.srcPort = port;
        this.srcDatabaseName = databaseName;
        this.srcUsername = username;
        this.srcPassword = password;
        this.srcEngineType = engineType;
    }

    public void setTargetDatabaseConfig(String ip, String port, String databaseName, String username, String password, String engineType) {
        this.tarIP = ip;
        this.tarPort = port;
        this.tarDatabaseName = databaseName;
        this.tarUsername = username;
        this.tarPassword = password;
        this.tarEngineType = engineType;
    }
}
